package com.ruoyi.Healthgoals.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户目标对象 health_goals
 * 
 * @author ruoyi
 * @date 2025-03-03
 */
public class HealthGoals extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 目标ID */
    private Long goalId;

    /** 用户ID，关联 sys_user 表 */
    @Excel(name = "用户ID，关联 sys_user 表")
    private Long userId;

    /** 目标名称 (1-运动步数, 2-运动时间) */
    @Excel(name = "目标名称 (1-运动步数, 2-运动时间)")
    private Long name;

    /** 目标值 */
    @Excel(name = "目标值")
    private Long targetValue;

    /** 实际值 */
    @Excel(name = "实际值")
    private Long actualValue;

    /** 目标状态 (0-未完成, 1-已完成) */
    @Excel(name = "目标状态 (0-未完成, 1-已完成)")
    private Long status;

    /** 目标日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "目标日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date date;

    public void setGoalId(Long goalId) 
    {
        this.goalId = goalId;
    }

    public Long getGoalId() 
    {
        return goalId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setName(Long name) 
    {
        this.name = name;
    }

    public Long getName() 
    {
        return name;
    }
    public void setTargetValue(Long targetValue) 
    {
        this.targetValue = targetValue;
    }

    public Long getTargetValue() 
    {
        return targetValue;
    }
    public void setActualValue(Long actualValue) 
    {
        this.actualValue = actualValue;
    }

    public Long getActualValue() 
    {
        return actualValue;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setDate(Date date) 
    {
        this.date = date;
    }

    public Date getDate() 
    {
        return date;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("goalId", getGoalId())
            .append("userId", getUserId())
            .append("name", getName())
            .append("targetValue", getTargetValue())
            .append("actualValue", getActualValue())
            .append("status", getStatus())
            .append("date", getDate())
            .toString();
    }
}
